package com.ting.etp.main;

import com.ting.etp.loader.start.EtpStart;
import com.ting.etp.host.starter.EtpApplicationStart;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
public class MainApp implements EtpStart {

    public static void main(String[] args) throws Exception {
        EtpApplicationStart.launch(MainApp.class,args);
    }

    @Override
    public void run(String[] args) throws Exception {
        SpringApplication.run(MainApp.class,args);
        log.info("调用结束...");
    }
}
